﻿<Window x:Class="DemoP.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="480" Width="864">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="200"/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <StackPanel Grid.Column="0" Orientation="Vertical">
            <TextBox Name="tbFileName"/>
            <Button Name="buttonOpenFile" Content="Select File" Click="buttonOpenFile_Click" />
            <Button Name="buttonRecordAudio" Content="Record" Click="buttonRecordAudio_Click" />
            <TextBlock Name="tbPStatus"/>
        </StackPanel>
        <Image Name="videoFrame" Grid.Column="1" Stretch="Uniform"/>
        <Canvas Name="arCanvas" Grid.Column="1" Width="640" Height="480">
            <MediaElement x:Name="soundPOn" Source="./pon.wav" LoadedBehavior="Manual"/>
        </Canvas>
        <TextBlock Name="tbDistance" VerticalAlignment="Bottom" HorizontalAlignment="Left" FontFamily="Meiryo" FontSize="20"/>
    </Grid>
</Window>
